﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BMLib;
namespace TestApp
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        WaveFileObject fo = new WaveFileObject();
        
        private void Form1_Load(object sender, EventArgs e)
        {
            string file = @"D:\Jobs\Brainwave\TestData\ClientData\clientReport\2013121191732_1 - 副本.egg";
           
            fo.LoadFile(file);
            foreach (var item in fo.Waves)
            {
                Bitmap img = new Bitmap(128, 128);
                item.DrawToBitmap(img, Pens.Red);
                PictureBox pb = new PictureBox();
                pb.Size = new Size(img.Width, img.Height);
                pb.Image = img;
                flowLayoutPanel1.Controls.Add(pb);
            }
        }

        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            
            

        }
    }
}
